/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ces31.ChineseDicesClient;

import ces31.ChineseDicesClient.IU.*;
import ces31.ChineseDicesClient.RN.RN_SalaDeEspera;
import java.rmi.RemoteException;

/**
 *
 * @author Anderson Aiziro
 */
public class SO_SistemaCliente {

/**
 * Inicio do cliente.
 *
 * @param args
 * @throws java.rmi.RemoteException
 */
    public static void main(String args[]) throws RemoteException {
        SO_SistemaCliente.iniciarCliente();
        SO_SistemaCliente_Facade.getSO_SistemaCliente_Facade().setIU_InicialInstance(telaInicial);
    }

/**
 * Caso de Uso: Iniciar Cliente
 * Ator: Jogador
 */
    public static void iniciarCliente() {
        telaInicial = new IU_Inicial();
        telaInicial.setVisible(true);
        salaDeEspera = new RN_SalaDeEspera();
    }
    
/**
 * Caso de Uso: Encerrar Cliente
 * Ator: Jogador
 * @throws java.lang.Throwable
 */
    public static void encerrarCliente() throws Throwable {
        System.exit(0);
    }

    public static RN_SalaDeEspera getSalaDeEspera() {
        return salaDeEspera;
    }

    private static RN_SalaDeEspera salaDeEspera;
    private static IU_Inicial telaInicial;
}
